package com.system.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.system.mapper.T_rateMapper;
import com.system.domain.T_rate;

@Service("t_rateService")
@Transactional
public class T_rateService{
	private static Logger log = Logger.getLogger(T_rateService.class.getName());

	@Resource
    private T_rateMapper t_rateMapper;


	public int save(T_rate obj){
		 return t_rateMapper.save(obj);
	}

	public int update(T_rate obj){
		return t_rateMapper.update(obj);
	}

	public int delete(T_rate obj){
		return t_rateMapper.delete(obj);
	}

	public T_rate findById(T_rate obj){
		return t_rateMapper.findById(obj);
	}

	public List findAll(T_rate obj ){
		 return t_rateMapper.findAll(obj);
	}

	public int findCountAll(T_rate obj ){
		 return t_rateMapper.findCountAll(obj);
	}
}
